package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import org.bson.types.ObjectId;

import java.util.List;

public interface CommentApi {

    //发布评论，并获取评论数量
    Integer save(Comment comment1);

    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);

    Boolean hasComment(String movementId, Long userId, CommentType like);

    Integer delete(Comment comment);

    List<Comment> findById(Integer page, Integer pagesize, Long userId, int type);


    Comment findByIdComment(String id,Long userId);
}
